package core.units;

import java.awt.Point;

import core.Player;

public class Seeker extends Unit{


	int refreshCooldown = 50;

	public Seeker(Point inPoint, Player m){
		super(inPoint.x,inPoint.y, m);
		health=150;
		maxHealth=150;
		speed=150;
	}
	
	@Override
	public void ai(){
		refreshCooldown--;
		if(refreshCooldown <= 0){
			tX=0;
			tY=0;
			dir=angleTo(findNearestEnemy());
			refreshCooldown = 50;
		}
		
	}
	
	
}
